let hd = `
  <h1>houdunren</h1>
  <span>后盾人</span>
  <h2>hdcms</h2>
`;



let reg = /<(?<tag>h[1-6])>(?<con>[\s\S]*)<\/\1>/gi;

console.log(reg.exec(hd))
console.log(reg.exec(hd))
console.log(reg.exec(hd))


